package com.yy.train.ticket.train.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yy.train.ticket.goout.TrainLine;
import com.yy.train.ticket.into.Ticket;
import com.yy.train.ticket.into.TrainNumber;
import com.yy.train.ticket.train.dao.TtTrainNumberDao;
import com.yy.train.ticket.train.entity.TtTrainNumberEntity;
import com.yy.train.ticket.train.service.TtTrainNumberService;
import com.yy.train.ticket.utils.R;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("ttTrainNumberService")
public class TtTrainNumberServiceImpl extends ServiceImpl<TtTrainNumberDao, TtTrainNumberEntity> implements TtTrainNumberService {

@Resource
    TtTrainNumberDao ttTrainNumberDao;

    @Override
    public R ticketlist(Ticket ticket) {
       // LambdaQueryWrapper<TtTrainNumberEntity> lambdaQueryWrapper=new LambdaQueryWrapper<>();
      //  lambdaQueryWrapper.eq()
             //   .like(StringUtils.isNotBlank(item), TchTeacherChargeItemEntity::getItem, item);
      List<TrainLine> list =this.ttTrainNumberDao.ticketlist(ticket);
        return R.ok(list);
    }

    @Override
    public R runDate(TrainNumber trainNumber) {

        return R.ok();
    }
}